package com.etoak.service.impl;

import com.etoak.entity.ProductLine;
import com.etoak.mapper.ProductlineMapper;
import com.etoak.service.IProductlineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductlineServiceImpl implements IProductlineService {

    @Autowired
    ProductlineMapper productlineMapper;

    @Override
    public List<ProductLine> getProductLine(ProductLine productline) {
        return productlineMapper.getProductLine(productline);
    }

    @Override
    public int add(ProductLine productline) {
        return productlineMapper.add(productline);
    }

    @Override
    public List<ProductLine> getProductLineByTerritory(String territoryId) {
        return productlineMapper.getProductLineByTerritory(territoryId);
    }
}
